package com.yunlong.softpark.form;

import lombok.Data;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @Author: Cui
 * @Date: 2020/8/17
 * @Description:
 */
@Data
public class UpdateColumnForm {

    @NotBlank(message = "columnId不能为空")
    private String columnId;

    @NotBlank(message = "栏目名不能为空")
    @Size(max = 10,message = "请输入10个以内的字符")
    private String columnName;

    @NotBlank(message = "父分类不能为空")
    private int parentId;

    @NotBlank(message = "栏目logo不能为空")
    @URL(host = "10.150.200.105",message = "栏目logo来源错误")
    private String columnLogo;

    @NotBlank(message = "栏目官网不能为空")
    @URL(message = "请输入正确的网址")
    private String columnWeb;

    @NotBlank(message = "官方介绍不能为空")
    @Size(max = 100,message = "请输入100个字以内的介绍")
    private String webIntroduce;

    @NotBlank(message = "栏目类型不能为空")
    @Size(max = 10,message = "请输入10个字符以内的栏目类型")
    private String columnType;

    @NotBlank(message = "授权信息不能为空")
    @Size(max = 10,message = "请输入10个字符以内的授权信息")
    private String license;

    @URL(host = "10.150.200.105")
    @NotBlank(message = "界面展示图片不能为空")
    private String showPic;

    private String briefIntro;

    private String function;

    private String character;

    private String updateLog;
}
